#ifndef DIALOGLOGIN_H
#define DIALOGLOGIN_H

#include <QDialog>
#include <QMouseEvent>
#include <QTimer>

namespace Ui {
class DialogLogin;
}

class DialogLogin : public QDialog
{
    Q_OBJECT

public:
    explicit DialogLogin(QWidget *parent = nullptr);
    void initUI();
    ~DialogLogin();
    bool eventFilter(QObject *obj, QEvent *event);
private slots:
    void on_pushButton_close_clicked();

    void on_pushButton_login_clicked();

private:
    Ui::DialogLogin *ui;
    bool isLongPress;
    QPoint pressPos;
};

#endif // DIALOGLOGIN_H
